//! @Author: DengLibin 榆霖
//! @Date:  2022-07-05 11:11:44
//! @Description: 雪花算法测试
//! 

use snowflake::{SnowflakeIdGenerator};

#[test]
pub fn test_snowflake() {

    let mut generator = SnowflakeIdGenerator::new(1, 1);
    
    for _ in 1..10 {
        println!("{}", generator.real_time_generate() - 6950255325782085633);
    }
    
    
}